package com.example.ticketingserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Time;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 *
 * @TableName line
 */
@Schema(description = "车次信息")
@TableName(value ="line")
@Data
public class Line implements Serializable {
    /**
     * 车次
     */
    @Schema(description = "车次")
    private Integer id;
    /**
     * 起始站
     */
    @Schema(description = "起始站")
    private String startingstation;
    /**
     * 终点站
     */
    @Schema(description = "终点站")
    private String destination;
    /**
     * 发车日期
     */
    @Schema(description = "发车日期")
    private Date date;
    /**
     * 发车时间
     */
    @Schema(description = "发车时间")
    private String departuretime;
    /**
     * 到达时间
     */
    @Schema(description = "到达时间")
    private String arrivaltime;
    /**
     * 售价
     */
    @Schema(description = "售价")
    private BigDecimal price;
    /**
     * 起始站和终点站的距离
     */
    @Schema(description = "起始站和终点站的距离")
    private Double distance;
    /**
     * 行驶时间
     */
    @Schema(description = "行驶时间")
    private Integer time;
    /**
     * 车次状态 0-正常 1-禁用
     */
    @Schema(description = "车次状态 0-正常 1-禁用")
    private Integer status;
    /**
     * 剩余车票数
     */
    @Schema(description = "剩余车票数")
    private Integer ticketnumber;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}